{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <form class="form-horizontal" method="post">
            <div class="col-sm-12">
                <div class="tabs-container">

                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
                            <div class="ibox-content">
                                        {if condition='!$tid'}
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">首页推荐：</label>
                                    <div class="col-sm-9">
                                        <div class="radio i-checks">
                                            <label>
                                                <input type="radio" value="1" name="is_rec" {present name='name'}{eq name="name.is_rec" value="1"}checked{/eq}{/present}>是
                                            </label>
                                            <label>
                                                <input type="radio" value="0" name="is_rec" {present name='name'}{eq name="name.is_rec" value="0"}checked{/eq}{else/}checked{/present}>否
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                        {/if}
                                <div class="form-group">
                                    <label class="col-sm-2 control-label"> 状态：</label>
                                    <div class="col-sm-9">
                                        <div class="radio i-checks">
                                            <label>
                                                <input type="radio" value="0" name="is_hide" {present name='name'}{eq name="name.is_hide" value="0"}checked{/eq}{else/}checked{/present}>显示
                                            </label>
                                            <label>
                                                <input type="radio" value="1" name="is_hide" {present name='name'}{eq name="name.is_hide" value="1"}checked{/eq}{/present}>隐藏
                                            </label>
                                        </div>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">名称：</label>
                                    <div class="col-sm-9">
                                        <input name="name" type="text" class="form-control" value="{present name='name'}{$name.name}{/present}">
                                        {if condition='$tid'}
                                        <input name="parent_id" type="hidden" class="form-control" value="{$tid}">
                                        {/if}
                                    </div>
                                </div>
                                <!-- <div class="form-group">
                                    <label class="col-sm-2 control-label">图标：</label>
                                    <div class="col-sm-9">
                                        <div class="input-group">
                                            <img src="{present name='name.image'}{if condition='$name.image'}__ROOT__{$name.image}{else /}__IMG__add_img.png{/if}{else /}__IMG__add_img.png{/present}" id="imageimg" style="max-width: 100%">
                                            <input name="image" type="hidden"  id="image" class="form-control" value="{present name='name'}{$name.image}{/present}">
                                            <span class="input-group-btn">
                                                <button type="button" class="btn btn-primary" id="tubiao">上传</button>
                                            </span>
                                        </div>
                                    </div>
                                </div> -->
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">排序：</label>
                                    <div class="col-sm-9">
                                        <input name="des" type="text" class="form-control" value="{present name='name'}{$name.des}{/present}">
                                    </div>
                                </div>
                                {present name='name'}
                                <input name="id" type="hidden" class="form-control" value="{$name.id}">
                                {/present}
                                <hr>

                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
{include file="public/footer" /}
{load href="__PLUGINS__iCheck/icheck.min.js"}
{load href="__PLUGINS__iCheck/custom.css"}
<script type="text/javascript">
    $(document).ready(function(){
        $(".i-checks").iCheck({
            checkboxClass: "icheckbox_square-green",
            radioClass: "iradio_square-green",
        })
    });
    function msg(){
        layer.msg("上传成功")
    }
</script>
{include file="public/bottom" /}
